package com.methods;

/**
 * Animal类
 * 描述：基类
 * 2017/8/19.
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 */
public class Animal {
    private String kind;

    public Animal(){}

    /**
     * 带参构造
     * @param kind 动物种类
     */
    public Animal(String kind){ this.setKind(kind);}
//setter
    public void setKind(String kind) {  this.kind = kind;   }
//getter
    public String getKind() {   return this.kind;   }

    public void cry(){}
}
